function initfrom(data){
    layui.use(function(){
        var util = layui.util;
        alert(data.id);
        $("#id").text(data.id);
        $("#studentid").text(data.studentid);
        $("#name").text(data.studentid);
        $("#gender").text(getGender(data.gender));
        $("#gender").attr("value",data.gender);
        $("#studentAddr").text(data.studentAddr);
        $("#addTime").text(util.toDateString(d.ctime*1000,"yyyy-MM-dd HH:mm"));  
        $("#addTime").attr("value",data.addTime);
        $("#phone").text(data.phone);
        $("#msg").text(data.msg);
        $.each(data.pic,function(i,data){//添加图片
            $("image").append('<img style="width: 30%; height: auto;" src="'+data+'" onclick="big(this)">');
        })
    });
};
